export interface User {
    id: number;
    name: string;
    password: string;
    email: string;
    phone: string;
    role: string;
    date: string;
}

export interface Register {
    username: string;
    password: string;
    email: string;
    phone: string;
}

export interface AdminUser {
    _id: string;
    username: string;
    email: string;
    phone: string;
    role: string;
    status: string;
    createdAt: string;
}

// 登录和注册API响应格式
export interface UserAuthResponse {
    success: boolean;
    message: string;
    data: {
        user: AdminUser;
        token: string;
    }
}